gtkapplication: Fix incorrect value passed to g_variant_new()
authorBastien Nocera <hadess@hadess.net>
Mon, 14 Apr 2014 14:40:20 +0000 (16:40 +0200)
committerBastien Nocera <hadess@hadess.net>
Mon, 14 Apr 2014 18:27:45 +0000 (20:27 +0200)
The code expected to format @u, not u.

https://bugzilla.gnome.org/show_bug.cgi?id=728140

gtk/gtkapplication-dbus.c

index b0dab7096502c673a56ca60fed7ab1891e8bc916..09afcfa015b5082c229d1117f2139ff4d9021d0a 100644 (file)
@@ -339,7 +339,7 @@ gtk_application_impl_dbus_inhibit (GtkApplicationImpl         *impl,
                                 "Inhibit",
                                 g_variant_new ("(s@usu)",
                                                dbus->app_id,
-                                               window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : 0,
+                                               window ? gtk_application_impl_dbus_get_window_system_id (dbus, window) : g_variant_new_uint32 (0),
                                                reason,
                                                flags),
                                 G_DBUS_CALL_FLAGS_NONE,